package ae.pcfc.etks.online.web.common;

public class Constants {
	// Declaration of the Validation expressions

	public static final String DATE_REGEX = "^((0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/((19|20)[0-9][0-9]))?$";
	public static final String ADDRESS_REGEXP = "[a-zA-Z'\\. %]*";
	//public static final String MAIL_REGEXP = "^([_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,}))?$";
	public static final String MAIL_REGEXP = "^[-_A-Za-z0-9-\\+]+(\\.[-_A-Za-z0-9-]+)*@[-_A-Za-z0-9-]+(\\.[-_A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
	public static final String URL_REGEXP = "^((((https?|ftp|file)://)|(www.)){1,}[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|])?$";
	public static final String TEL_REGEXP = "^(\\+?([0-9-]){6,14}[0-9])?$";
	public static final String NUM_REGEXP = "[0-9%]*";

	// Entity types (that can register)
	public static final String PERSON = "P";
	public static final String COMPANY = "C";

	// User Types (mainly the different types of roles)
	public static final String USER = "U";
	public static final String EMPLOYEE = "E";
	public static final String ADMIN = "A";
	public static final String COMPANY_ONLINE_ADMIN = "U";

	// Locale Constants
	public static final String LOCALE_ARABIC = "ar";

	// Status
	public static final String ACTIVE = "A";
	public static final String INACTIVE = "D";

	// Exception Key (ie: it must precede any error message so the exception
	// handler can display cppropriate message)
	public static final String EXCEPTION_MESSAGES_PREFIX = "error.exception.";

	

	// Work Flow Constants
	// public static final String WORK_FLOW_STATUS_IN_PROGRESS = "I";
	// public static final String WORK_FLOW_STATUS_APPROVED = "A";
	// public static final String WORK_FLOW_STATUS_REJECT = "R";

}
